package org.hagopa.games.moneypool.game;


import org.hagopa.games.moneypool.network.IClientHandler;

public class PlayerHolder {
	
	private int gId = 0;
	private IClientHandler clientHandler= null;
	private int cash = 0;
	private boolean netClient = false;
	private int type = 0;   // 0 - view, 1 - play
	private int currPosition = 0;
	private int turnStatus = 0; // turn status 0- before throw dies, 1 after
	
	public int getTurnStatus() {
		return turnStatus;
	}

	public void setTurnStatus(int turnStatus) {
		this.turnStatus = turnStatus;
	}

	public int getCurrPosition() {
		return currPosition;
	}

	public void setCurrPosition(int currPosition, int offset) {
		if(offset == 0)
		{
			this.currPosition += currPosition;
		}
		else
		{
			this.currPosition = currPosition;
		}
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public PlayerHolder(int temp)
	{
		System.out.println("Temp: Should be implemented");
	}
	
	public int getCash() {
		return cash;
	}
	public void setCash(int cash) {
		this.cash = cash;
		
	}
	public int getGId() {
		return gId;
	}
	public void setGId(int id) {
		gId = id;
	}
	public IClientHandler getClientHandler() {
		return clientHandler;
	}
	public void setClientHandler(IClientHandler clientHandler, boolean ifNet) {
		this.clientHandler = clientHandler;
		this.netClient = ifNet;
	}

	public boolean isNetClient() {
		return netClient;
	}

	public void setNetClient(boolean netClient) {
		this.netClient = netClient;
	}

	
	
}
